package com.fanyouzhao.ehome.service.impl;

import com.fanyouzhao.ehome.dao.GetVoDao;
import com.fanyouzhao.ehome.dao.impl.GetVoDaoImpl;
import com.fanyouzhao.ehome.entity.GetVo;
import com.fanyouzhao.ehome.service.GetVoService;

import java.util.List;

/**
 * @Author: fanyouzhao
 * @Date: 13:39 2021/5/14
 */
public class GetVoServiceImpl implements GetVoService {

    GetVoDao getVoDao = new GetVoDaoImpl();
    @Override
    public List<GetVo> selectByPage(int page, int size) throws Exception {
        return getVoDao.selectByPage(page,size);
    }
    @Override
    public List<GetVo> selectAll() throws Exception {
        return getVoDao.selectAll();
    }

    @Override
    public Integer getCount() throws Exception {
        return getVoDao.getCount();
    }

    @Override
    public Integer getCountSearch(String searchString) throws Exception {
        return getVoDao.getCountSearch(searchString);
    }

    @Override
    public List<GetVo> searchByPhoneorName(String searchString, Integer page, Integer size) throws Exception {
        return getVoDao.selectLikeNameorPhoneByPage(searchString,page,size);
    }
}
